import request from "../utils/request";

export const login = (data) => {
  return request.post("/no-auth/h5/member/login", data);
};

export const getCaptchaImage = () => {
  return request.get("/captchaImage");
};
export const getUserInfo = () => {
  return request.get("/h5/member/getInfo");
};

export const register = (data) => {
  return request.post("/no-auth/h5/member/register", data);
};

export const activeMember = (data) => {
  return request.post("/no-auth/h5/member/active_member", data);
};

export const forgetPassword = (data) => {
  return request.post("/no-auth/h5/member/forget_password", data);
};

export const sendForgetCode = (data) => {
  return request.post("/no-auth/h5/member/send_forget_code", data);
};

export const logout = () => {
  return request.post("/logout");
};
